package com.example.demo.model.service;

import com.example.demo.model.mapper.NoticeMapper;
import com.example.demo.model.valueObject.Notice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NoticeService {
    @Autowired
    private NoticeMapper mapper;
    //获取公告
    public Notice getNotice()
    {
        return mapper.getNotice();
    }
    //发布公告
    public void insertNotice(Notice notice)
    {
        mapper.insertNotice(notice);
    }
    //删除公告
    public void deleteNotice()
    {
        mapper.deleteNotice();
    }
}
